#ifndef SERVERTHREAD_H
#define SERVERTHREAD_H
#include "baseThread.h"
#include "data.h"
#include <list>
#include <time.h>
using namespace std;

//服务器异常类
class ServerThread:public BaseThread{
	private:
	list<MatchedLogRec> matches;//匹配日志容器
	list<struct tm > loginDay;//登入日志容器
	list<struct tm >logoutDay;//登出日志容器
    int conn_fd;//client
	public:
		ServerThread(int conn_fd);
		~ServerThread();
		void run();	//从日志队列中取出数据，交给dao
		struct tm unixTime2Str(int n);//Unix时间转换结构体
};
#endif
